package tienda14;

public class TiendaServiceBeanProxy implements tienda14.TiendaServiceBean {
  private String _endpoint = null;
  private tienda14.TiendaServiceBean tiendaServiceBean = null;
  
  public TiendaServiceBeanProxy() {
    _initTiendaServiceBeanProxy();
  }
  
  public TiendaServiceBeanProxy(String endpoint) {
    _endpoint = endpoint;
    _initTiendaServiceBeanProxy();
  }
  
  private void _initTiendaServiceBeanProxy() {
    try {
      tiendaServiceBean = (new tienda14.TiendaServiceBeanServiceLocator()).getTiendaServiceBeanPort();
      if (tiendaServiceBean != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)tiendaServiceBean)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)tiendaServiceBean)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (tiendaServiceBean != null)
      ((javax.xml.rpc.Stub)tiendaServiceBean)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public tienda14.TiendaServiceBean getTiendaServiceBean() {
    if (tiendaServiceBean == null)
      _initTiendaServiceBeanProxy();
    return tiendaServiceBean;
  }
  
  public java.lang.String procesarEnvT(java.lang.String arg0) throws java.rmi.RemoteException{
    if (tiendaServiceBean == null)
      _initTiendaServiceBeanProxy();
    return tiendaServiceBean.procesarEnvT(arg0);
  }
  
  
}